package com.example.mes_boot.service.imp;
import com.example.mes_boot.mapper.Indexmapper;
import com.example.mes_boot.pojo.factory;
import com.example.mes_boot.pojo.process;
import com.example.mes_boot.pojo.project;
import com.example.mes_boot.service.Indexservice;
import com.example.mes_boot.pojo.checkpoint;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.security.PublicKey;
import java.util.List;
@Service
public class indexserviceimpl implements Indexservice{
    @Autowired
    private Indexmapper indexmapper;
    @Override
    public List<checkpoint> findBypage(RowBounds rowBounds) {
        return indexmapper.findBypage(rowBounds);
    }

    @Override
    public List<checkpoint> findBy() {
      return indexmapper.findBy();
    }
    @Override
    public  List<checkpoint> findBysele(RowBounds rowBounds,String name,String address,String status){
        return indexmapper.findBysele(rowBounds,name,address,status);
    }
    @Override
    public  List<project> findByproject(){
        return indexmapper.findByproject();
    }
    @Override
    public  List<project> findByprojectpage(RowBounds rowBounds){
        return  indexmapper.findByprojectpage(rowBounds);
    }

    @Override
    public  List<project>findBylike(String name, String startDate, String endDate, String status){
        return indexmapper.findBylike(name,startDate,endDate,status);
    }
    @Override
    public  List<factory>   findByfactory(){ return  indexmapper.findByfactory();}
    @Override
    public  List<factory>   findByfactory(String name){ return  indexmapper.findByfactory(name);}
    @Override
    public  List<factory> findByfactorypage(RowBounds rowBounds){
        return indexmapper.findByfactory(rowBounds);
    }
    @Override
    public  List<factory> findByload(Integer id){return  indexmapper.findByload(id);}
    @Override
    public List<factory>equipment(){return indexmapper.equipment();}
    @Override
    public  List<factory> findwl(Integer id, String name, String model, String specification,String code){
        return indexmapper.findwl(id,name,model,specification,code);
    }
    public  List <factory>find(String code){
        return  indexmapper.w(code);
    }

    @Override
    public List<process> findByprocess(String name) {
        return indexmapper.findByprocess(name);
    }

    @Override
    public List<process> findByprocesspage(RowBounds rowBounds) {
        return indexmapper.findprocesspage(rowBounds);
    }
}
